Previous Book Contents Book Index Next

Inside Macintosh: Programming With JManager /
Chapter 2 - JManager Reference / JManager Functions
Frame Manipulation Functions /


JMFrameKey

Dispatches a key-down event to a frame.

OSStatus JMFrameKey (JMFrameRef frame,
                     char asciiChar,
                     char keyCode,
                     short modifiers);
frame
The frame in which the key-down event occurred.
asciiChar
The ASCII character typed.
keyCode
The machine key code typed.
modifiers
Any keyboard modifiers from the EventRecord data structure. You can determine the ASCII character (and corresponding machine key code) from EventRecord.message. For more information about EventRecord, see Inside Macintosh: Macintosh Toolbox Essentials.
function result
A result code; see "JManager Result Codes".
DISCUSSION
The client application must keep track of the currently active frame.

SEE ALSO
"Keyboard Events".

The JMFrameKeyRelease function.


Previous Book Contents Book Index Next

© Apple Computer, Inc.
10 DEC 1997